#include<bits/stdc++.h>
using namespace std;

long long a[500500];
long long n, start=0;

int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin>>n;
	for (int i = 0; i < n; i++)
	{
		cin>>a[i];
	}
	
	
	long long ans = n;
	sort(a,a+n);
	for (int i = 1; i < n; i++)
	{
		if (a[i]>a[start]){
			start++;
			ans--;
		}
		
		//~ for (int j=start;j<n;j++){
			//~ cout<<a[j]<<" ";
		//~ }
		//~ cout<<"\n";
	}
	cout<<ans;
	return 0;
}
